package org.sharelife.service;

import org.sharelife.entity.Picture;
import org.sharelife.util.PageBean;

public interface PictureService {

	public boolean add(Picture picture) throws Exception;
	
	public PageBean findForPage(int userId, int pageSize, int page) throws Exception;
	
	public PageBean findAll(int pageSize, int page) throws Exception;
	
	public Picture findById(int id) throws Exception;
	
	public void delete(int id) throws Exception;
	
	public Integer deleteAll() throws Exception;

	public PageBean queryForPage(int pageSize,int page) throws Exception;
	
	public PageBean queryByKeyWord(String keyWord, int pageSize, int page) throws Exception;
	
	public PageBean queryByType(String keyWord, int pageSize, int page) throws Exception;
}